package io.renren.modules.lucky.service;

import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.lucky.entity.AppUserSmsEntity;

import java.util.Map;

/**
 * app端-用户-短信验证码
 *
 * @author chenshun
 * @email chenchen@ashacker.com
 * @date 2019-09-04 17:01:09
 */
public interface AppUserSmsService extends IService<AppUserSmsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据手机获取验证码
     *
     * @param phoneNum
     * @return
     */
    Map<String, Object> validCode(String phoneNum) throws ClientException;

    /**
     * 校验手机号与验证码 TODO
     *
     * @param phoneNum
     * @param smsCode
     * @return
     * @author HObOCat
     * @date 2019/11/7 14:12
     */
    Map<String, Object> validPhoneWithSmscode(String phoneNum, String smsCode);
}

